#!/bin/sh

for i in $PLIBDIRS # $PLIBDIRS is exported in 2createpackages
do
	[ -d $i ] || continue
	if [ -e ${i}/libgphoto2.so.6 ] ; then
		ln -sv libgphoto2.so.6 ${i}/libgphoto2.so.2
	fi
	if [ -e ${i}/libgphoto2_port.so.12 ] ; then
		ln -sv libgphoto2_port.so.12 ${i}/libgphoto2_port.so.10
		ln -sv libgphoto2_port.so.12 ${i}/libgphoto2_port.so.0
	elif [ -e ${i}/libgphoto2_port.so.10 ] ; then
		ln -sv libgphoto2_port.so.10 ${i}/libgphoto2_port.so.0
	fi
done

rm -rf usr/share/libgphoto2/*/konica/french
rm -rf usr/share/libgphoto2/*/konica/german
rm -rf usr/share/libgphoto2/*/konica/japanese
rm -rf usr/share/libgphoto2/*/konica/korean
rm -rf usr/share/libgphoto2/*/konica/spanish

